#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end
#parse("File Header.java")

import lombok.Data;
/**
 * @Auther: lizhx
 * @Date: ${DATE} ${HOUR}:${MINUTE}
 * @Description: 
 */
@Data
public class ${NAME} extends RuntimeException {
	private static final long serialVersionUID = -2074760404764602509L;
	/*一级响应码和响应信息*/
	private int code;
	private String msg;
	/*二级响应码和响应信息*/
	private int sysCode;
	private String sysMsg;

	public ${NAME}(int code, String msg) {
		super();
		/*一级响应码和响应信息*/
		this.code = code;
		this.msg = msg;
		/*二级响应码和响应信息*/
		this.sysCode = code;
		this.sysMsg = msg;
	}

	public ${NAME}(BaseErrorCode ex) {
		super();
		/*一级响应码和响应信息*/
		this.code = ex.getCode();
		this.msg = ex.getMsg();
		/*二级响应码和响应信息*/
		this.sysCode = ex.getSysCode();
		this.sysMsg = ex.getSysMsg();
	}
}